package com.wyg.aop;

import com.wyg.entity.User;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{
    @Override
    public void printUser(User user) {
        if (user == null){
            throw new RuntimeException("user 不能为 null");
        }

        System.out.println("id：" + user.getId());
        System.out.println("name：" + user.getName());
    }
}
